const app = getApp();
const imageTools = app.imageTools;

Component({
  /**
   * 组件的属性列表
   */
  properties: {
    clipImageNode: {
      type: Object,
      value: { }
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    imageNode: { }
  },

  lifetimes: {
    ready: function () {
      let that = this;
      let clipImageNode = that.data.clipImageNode;
      let xiamuImage = imageTools.createImageNodeObjectFn(clipImageNode);
      this.setData({
        imageNode: xiamuImage
      })
    }
  },

  /**
   * 组件的方法列表
   */
  methods: {
    cancelFn: function () {  this.triggerEvent("cancelFn"); },
    confirmFn: function () {
      
    }
  }
})
